Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect all errors from all passes, rename and document some of them #313

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Oct 5, 2024

Some fields in data model filled by the compilation passes which is not obvious at all. To make this clear, I document properties which is filled by passes, document that passes and rename one of them. In the end, now all passes implements PrepocessStep and handled uniformly. Error in one value instance no more prevents from reporting errors in other value instances or reporting warnings and type problems

Mingun added 9 commits October 5, 2024 23:30
The new name gives more information about what the pass does
…umentation of related ClassSpec and EnumSpec properties
The new name gives more information about what the pass does
Currently the pass DeriveValueInstanceTypes throws error if type of instance
cannot be calculated, but this will change in next commit. That means that
accessing `dataType` of the ValueInstanceSpec will throw an error. If such
error is thrown we just cannot analyze that instance and can just ignore it

(review this commit in whitespace changes ignored mode)
…d by `TypeValidator`

If just return CompilationProblems from this pass, we will report some errors twice,
because `TypeValidator` alro reports errors from the `TypeDetector`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant